package org.jeecg.modules.golf.question.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecg.modules.golf.entity.BaseEntity;
import org.jeecgframework.poi.excel.annotation.Excel;

/**
 * @Description: 问题
 * @Author: jeecg-boot
 * @Date:   2020-10-18
 * @Version: V1.0
 */
@ApiModel(value="question对象", description="问题")
@Data
@TableName("question")
public class Question extends BaseEntity {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "主键")
    private Long id;

	/**问题标题*/
	@Excel(name = "问题标题", width = 15)
    @ApiModelProperty(value = "问题标题")
    private String title;
	/**学员*/
	@Excel(name = "学员", width = 15, dictTable = "sys_user join sys_user_role  on sys_user.id = sys_user_role.user_id", dicText = "realname", dicCode = "sys_user.id")
    @Dict(dictTable = "sys_user join sys_user_role  on sys_user.id = sys_user_role.user_id", dicText = "realname", dicCode = "sys_user.id")
    @ApiModelProperty(value = "学员")
    private String trainee;
	/**教练id*/
	@Excel(name = "教练id", width = 15, dictTable = "sys_user", dicText = "realname", dicCode = "username")
    @Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username")
    @ApiModelProperty(value = "教练id")
    private String coach;
	/**问题状态*/
	@Excel(name = "问题状态", width = 15, dicCode = "question_status")
    @Dict(dicCode = "question_status")
    @ApiModelProperty(value = "问题状态")
    private Integer questionStatus;
	/**差点*/
	@Excel(name = "差点", width = 15)
    @ApiModelProperty(value = "差点")
    private Integer chadian;
	/**描述*/
	@Excel(name = "描述", width = 15)
    @ApiModelProperty(value = "描述")
    private String description;
	/**测试成绩*/
	@Excel(name = "测试成绩", width = 15)
    @ApiModelProperty(value = "测试成绩")
    private String testResult;
	/**测试项目*/
	@Excel(name = "测试项目", width = 15, dicCode = "test_project")
    @Dict(dicCode = "test_project")
    @ApiModelProperty(value = "测试项目")
    private String testProject;
	/**视频地址*/
	@Excel(name = "视频地址", width = 15)
    @ApiModelProperty(value = "视频地址")
    private String vedioUrl;

    /**
     * 方案效果
     */
    @ApiModelProperty(value = "方案效果")
    @TableField(exist = false)
    private PlanEffective planEffective;
}
